home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Especial Multimedia
/
Especial Multimedia.iso
/
Multimed
/
Prg
/
DIBDLL.ZIP
/
DIBDLL.TXT
< prev
next >
Wrap
Text File
|
1992-12-21
|
3KB
|
78 lines
DIB.DLL will display a device independent bitmap in a topmost,
overlapped window. DIB.DLL is similar to Borland's DRAWBITS.DLL
except:
1) It supports 256 color (or more) bitmaps
2) Multiple bitmaps may be displayed at once, each in a
separate window
3) The bitmap window(s) may be closed, moved, resized,
minimized and maximized by the user
4) The bitmap window(s) may be positioned, scaled and closed programatically.
Using DIB.DLL with ObjectVision
A sample application, TESTDIB.OVD, is provided to demonstrate the use of
the DIB.DLL @functions. You should review this application if the instructions
below are not clear.
1) Register the two @functions within DIB.DLL by placing
the following commands in the event tree for the application:
@REGISTER("@ShowDIB","ACIIB","DIB File Name, Xpos, Ypos, Scale %","DIB.DLL","ShowDIB",1)
@REGISTER("@CloseDIB","AC","DIB File Name","DIB.DLL","CloseDIB",1)
It is probably easiest just to copy these from the event tree of TESTDIB.OVD
and paste them into your application.
2) Display a bitmap by calling "@ShowDIB" as follows:
@ShowDIB('File Name:','X Pos:','Y Pos:','Scale:')
where:
'File Name:' = A character string giving the name of the
bitmap file on disk. If the directory where
this file resides is not in your DOS PATH,
the full path name must be provided.
'X Pos:' = The horizontal position, in global coordinates,
for the upper right corner of the bitmap window.
'Y Pos:' = The vertical position, in global coordinates,
for the upper right corner of the bitmap window.
'Scale:' = The scale factor for initial sizing of the bitmap,
expressed as a percent (1 = 100%).
See the event tree of the "Show" button within the sample application
for more information. @ShowDIB returns Yes (true) if the bitmap
was successfully displayed, otherwise it returns No (false).
3) Close the bitmap by calling "@CloseDIB" as follows:
@CloseDIB('File Name:')
where 'File Name:' is the name of the bitmap file as displayed in the
bitmap window's title bar. If more than one window contains a bitmap
by this name, ALL windows containing this bitmap will be closed.
See the event tree for the "Close" button within the sample application
for more information. @CloseDIB returns Yes (true) if the bitmap window
was successfully removed, otherwise it returns No (false).
This DLL was written for fun and is provided to you in this same spirit. It is
not intended for commericial use or profit and may not be used for these purposes
without the written consent of the author. Those wishing to use these routines
for purposes other than personal enjoyment should contact me via Compuserve. Likewise,
those desiring source code, enhancements or wishing to express an opinion regarding
this work should contact me via email.
I hope you find this software enjoyable.
Steve Ura
72406,3660